package top.hidoctor.auscultation.adapter;

import android.support.v7.widget.RecyclerView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import top.hidoctor.auscultation.R;
import top.hidoctor.auscultation.bean.MarkDetailBean;

public class LabelDocAdapter extends BaseQuickAdapter<MarkDetailBean> {
    public LabelDocAdapter(int layoutResId, List<MarkDetailBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MarkDetailBean item) {
        helper.setText(R.id.checkbox, item.getOperatorName());
        helper.setChecked(R.id.checkbox, item.isDocCheck());
        helper.setOnClickListener(R.id.checkbox, new OnItemChildClickListener());
    }
}
